import { Component, OnInit } from '@angular/core';

@Component({
  selector: 'app-transition',
  templateUrl: './transition.component.html',
  styleUrls: ['./transition.component.scss']
})
export class TransitionComponent implements OnInit {

  constructor() { }

  ngOnInit(): void {
  }

  showAside() {
    //原生js获取dom节点
    let asideDom=document.getElementById('aside')

    asideDom.style.transform='translate(0, 0)'
  }

  hideAside() {
    //原生js获取dom节点
    let asideDom=document.getElementById('aside')

    asideDom.style.transform='translate(100%, 0)'
  }
}
